<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@page import="com.yaodian100.core.common.utils.ServerValue"%>
<c-rt:set var="frontContextPath" value='<%=ServerValue.getFrontContextPath()%>' />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="javascript">
	$().ready(function(){
		if("${actionResult}"=="new_mobile"){
			$("#current_location").html('&nbsp;&gt;&nbsp;<a href="${frontContextPath}/member/modifydata.do">个人信息管理&nbsp;-&nbsp;修改个人信息</a>&nbsp;&gt;&nbsp;新增手机号码');
		}else if("${actionResult}"=="modify_mobile"){
			$("#current_location").html('&nbsp;&gt;&nbsp;<a href="${frontContextPath}/member/modifydata.do">个人信息管理&nbsp;-&nbsp;修改个人信息</a>&nbsp;&gt;&nbsp;修改手机号码');
		}else{
			<c:choose>
			<c:when test="${empty member.email}">
				$("#current_location").html('&nbsp;&gt;&nbsp;<a href="${frontContextPath}/member/modifydata.do">个人信息管理&nbsp;-&nbsp;修改个人信息</a>&nbsp;&gt;&nbsp;维护登录邮箱');
				$("#title_txt").text('维护登录邮箱');
			</c:when>
			<c:otherwise>
				$("#current_location").html('&nbsp;&gt;&nbsp;<a href="${frontContextPath}/member/modifydata.do">个人信息管理&nbsp;-&nbsp;修改个人信息</a>&nbsp;&gt;&nbsp;修改登录邮箱');
			</c:otherwise>
			</c:choose>
		}
		$("#m_modifyData").css("font-weight","bold");

		$("#relogin").click(function(){
			$.post("${frontContextPath}/jsonlogout.do",{},callback,"json");
			function callback(actionResult){
				window.location.reload(); 
			}
		});
	});
</script>
</head>
<body>
<h2 id="title_txt">
<c:choose>
  	<c:when test="${empty actionResult}">修改登录邮箱
  	</c:when>
	<c:otherwise>
		<c:choose>
  		<c:when test="${actionResult == 'new_mobile'}">
    	<span class="location">新增手机号码</span>
  		</c:when>
	  	<c:otherwise>
		<span class="location">修改手机号码</span>
	  	</c:otherwise>
	</c:choose>
	</c:otherwise>
</c:choose>
</h2>
<div class="change-email">
<c:choose>
  	<c:when test="${ccode == 'error'}">
    连结错误
  	</c:when>
	  <c:otherwise>
		<p class=""><strong class="txt-m"><br />
          您所登录的帐户与要激活的帐户不一致，请<a href="javascript:;" id="relogin">重新登录</a>。</strong></p>
	  </c:otherwise>
</c:choose>
</div>
</body>
</html>